package com.shj.em.biz.company.service;

import com.shj.em.biz.company.dto.CompanySearchDTO;
import com.shj.em.biz.company.entity.Company;
import com.baomidou.mybatisplus.service.IService;
import com.baomidou.mybatisplus.plugins.Page;

import java.util.List;

/**
 * 客户信息 服务类
 *
 * @author Shen Huang Jian
 * @since 2018-07-05
 */
public interface CompanyService extends IService<Company> {

    /**
     * 分页查询
     * @return
     */
    Page<Company> queryCompanyPage(CompanySearchDTO searchDTO);

    List<Company> getAllCustomers();

    List<Company> getAllSupplies();

    List<Company> getCustomersBySellMan(String userId);

    long insertCompany(Company company);

}
